//翻译的接口
import request from "@/utlis/request";

enum API {
  TRANSLATE_URL = "/BaiduSparkMLExample", //翻译接口
  CHAT_URL = "/BaiduChat", //会话接口
}

export const reqTranslate = async (data: any) => {
  return request.post<any, any>(API.TRANSLATE_URL, data);
};

export const reqChat = async (data: any) => {
  return request.post<any, any>(API.CHAT_URL, data);
};
